package com.ity.teamanagement.code;

/**
 * @author coderFu
 * @create 2021/6/5
 */
public enum TeaQrCode implements Code{

    QR_CODE_PRODUCE_FAIL(false,2000,"二维码生成失败"),
    QR_CODE_PRODUCE_SUCCESS(true,2001,"二维码生成成功"),
    QR_CODE_DOWNLOAD_SUCCESS(true,2002,"二维码下载成功"),
    QR_CODE_DOWNLOAD_FAIL(false,2003,"二维码下载失败"),
    QR_CODE_STORE_FAIL(false,2004,"二维码存储数据库失败");


    private boolean success;

    private Integer code;

    private String message;

     TeaQrCode(boolean success, Integer code, String message){
        this.success = success;
        this.code = code;
        this.message = message;
    }


    @Override
    public boolean success() {
        return this.success;
    }

    @Override
    public int code() {
        return this.code;
    }

    @Override
    public String message() {
        return this.message;
    }
}
